//index.js
//获取应用实例
const app = getApp();

Page({
  data: {
    swiper: [
      { img: '../../images/swiper1.jpg'},
      { img: '../../images/swiper2.jpg'},
      { img: '../../images/swiper3.jpg'}
    ],
    posterImages: [
      '../../images/poster1.jpg',
    ],
    tabs: [{
      id: 0,
      text: '韩式半永久',
      icon: 't-hcbyj.png',
    },{
      id: 1,
      text: '减肥塑型',
      icon: 't-jfsx.png',
    },{
      id: 2,
      text: '逆龄抗衰',
      icon: 't-nlks.png',
    },{
      id: 3,
      text: '脱毛嫩肤',
      icon: 't-tmnf.png',
    },{
      id: 4,
      text: '经络养生',
      icon: 't-jlys.png',
    }],
    imgUrl: '../../images/',
    shopTel: app.globalData.shopTel,
    hasTel: true
  },
  onLoad: function () {
  },
  bindPosterTap: function(e) {
    var id = e.currentTarget.id;
    // if(id === 'poster0') {
    //   wx.navigateTo({
    //     url: '../detail/page?id=4',
    //   })
    // }
  },
  callTel: function() {
    var tel = app.globalData.shopTel;
    wx.makePhoneCall({
      phoneNumber: tel
    })
  }
})
